package com.dy.placeOrder.service.impl;

import com.dy.placeOrder.ReceivingAddress;
import com.dy.placeOrder.mapper.ReceivingAddressMapper;
import com.dy.placeOrder.service.ReceivingAddressService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2024-11-20
 */
@Service
public class ReceivingAddressServiceImpl extends ServiceImpl<ReceivingAddressMapper, ReceivingAddress> implements ReceivingAddressService {
    @Resource
    private ReceivingAddressMapper receivingAddressMapper;


    @Override
    public List<ReceivingAddress> find(Integer uid) {
        return receivingAddressMapper.find(uid);
    }

    @Override
    public List<ReceivingAddress> finddd(Integer id) {

        return receivingAddressMapper.finddd(id);
    }

    @Override
    public List<ReceivingAddress> findAllAddresses() {
        return receivingAddressMapper.findAllAddresses();
    }
}
